package com.lsyw.intergrate.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModelProperty;
import com.baomidou.mybatisplus.annotation.TableField;

import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 刘磊
 * @since 2024-02-21
 */
@Data
@Accessors(chain = true)

public class MesPointData implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
    @ApiModelProperty(value = "主键id")
    private String id;

    /**
     * 点位名称
     */
    @ApiModelProperty(value = "点位名称")
    private String pointName;

    /**
     * 数据值
     */
    @ApiModelProperty(value = "数据值")
    private Double value;

    /**
     * 采集时间
     */
    @ApiModelProperty(value = "采集时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date date;
    /**
     * 删除标志
     */
    @ApiModelProperty(value = "删除标志")
    private Integer delFlag;

    /**
     * 地块id
     */
    @ApiModelProperty(value = "地块id")
    private String massifId;
    /**
     * 地块id
     */
    @ApiModelProperty(value = "设备id")
    private String deviceId;
    /**
     * 地块id
     */
    @ApiModelProperty(value = "设备id")
    private Long cn;

}
